package org.van.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.van.blog.model.RelationShipDomain;

@Mapper
public interface RelationShipDao {
    List<RelationShipDomain> getRelationShipByMid(Integer mid);

    void deleteRelationShipByMid(Integer mid);

    Long getCountById(@Param("cid") Integer cid, @Param("mid") Integer mid);

    int addRelationShip(RelationShipDomain relationShip);

    void deleteRelationShipByCid(int cid);

    List<RelationShipDomain> getRelationShipByCid(Integer cid);
}
